package com.zjuh.taofood.web.action.admin;

import wint.mvc.flow.FlowData;
import wint.mvc.template.Context;

import com.zjuh.taofood.biz.ao.WorkerAO;
import com.zjuh.taofood.web.common.BaseAction;

public class Worker extends BaseAction {

	private WorkerAO workerAO;
	
	
	public void runFetchTags(FlowData flowData, Context context) {
/*		new Thread() {
			public void run() {
				tagsWorkerAO.runFetchTags();
			}
		}.start();*/
	}
	
	public void runDocSimilars(FlowData flowData, Context context) {
	/*	new Thread() {
			public void run() {
				similarWorkAO.runDocSimilars();
			}
		}.start();*/
	}
	
	public void runFetchTaobaoItems(FlowData flowData, Context context) {
	/*	new Thread() {
			public void run() {
				taobaoItemWorkAO.runFetchTaobaoItems();
			}
		}.start();*/
	}
	
	public void runTopTopicItems(FlowData flowData, Context context) {
		new Thread() {
			public void run() {
				workerAO.runTopTopicItems();
			}
		}.start();
	}
	
	public void runFetchItems(FlowData flowData, Context context) {
		new Thread() {
			public void run() {
				workerAO.runFetchItems();
			}
		}.start();
		
	}
	public void runUpdateRates(FlowData flowData, Context context) {
		new Thread() {
			public void run() {
				workerAO.runUpdateRates();
			}
		}.start();
		
	}

	public void runFetchCategories(FlowData flowData, Context context) {
		new Thread() {
			public void run() {
				workerAO.runFetchCategories();
			}
		}.start();
	}
	
	public void setWorkerAO(WorkerAO workerAO) {
		this.workerAO = workerAO;
	}
	
}
